This page last changed on Apr 12, 2006 by rossmason.

The Ejb connector allows Ejb session beans to be invoked as part of an event flow. Components can be given an ejb outbound endpoint which will invoke the remote object and optionally return a result.

The javadoc for this transport provider can be found here. And the Source Xref can be found here.

Ejb Connector Properties

Property Description Default Required
securityPolicy The security policy file to be used   Yes
jndiInitialFactory The Jndi factory used to access the Ejbs (for JBoss) org.jnp.interfaces.NamingContextFactory Yes
jndiUrlPkgPrefixes List of package prefixes to use when loading in URL context factories. (for JBoss) org.jboss.naming:org.jnp.interfaces Yes

For example -

<connector name="ejbConnector" className="org.mule.providers.ejb.EjbConnector">
    <properties>
        <property name="securityPolicy" value="wideopen.policy"/>
    </properties>
</connector>

Endpoints

Rmi endpoints are described as socket-based endpoints in the form of -

ejb://localhost:1099/[remote home name]?method=[method to invoke]

Using Rmi Connector

Note that only outbound endpoints can use the Ebj transport.

For a given endpoint, the following informationwill have to be written in the uri (uri path and parameter) :

  • registry host
  • registry port
  • romote home name
  • remote method name

these values will be used to establish dispatcher connection.

<endpoint address="ejb://localhost:1099/SomeService?method=remoteMethod">

If the remoteMethod can take 1 or more input arguments then they should be configured on the endpoint as list properties.

<properties>
    <list name="methodArgumentTypes">
        <entry value="java.lang.String"/>
        <entry value="java.lang.String"/>
    </list>
</properties>

Multiple arguments are passed in as an array of objects as the payload of the Mule event.

Transformers

There are no specific transformers required for Ejb.

Document generated by Confluence on Nov 27, 2006 10:27